package com.mingyuan.library.provider.lending.model.query;

import com.mingyuan.library.provider.common.dto.Query;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 查询读者档案信息条件
 *
 * @author yangzk
 * @version 1.0.0
 * @date 2024.01.05 18:55
 */
@Data
@ApiModel(description = "读者档案信息查询")
@EqualsAndHashCode(callSuper = true)
public class PatronProfileQuery extends Query implements Serializable {

    private static final long serialVersionUID = -5823086360552504785L;
    /**
     * 读者ID
     */
    @NotBlank(message = "读者ID不能为空")
    @ApiModelProperty(name = "patronId", value = "读者ID", required = true)
    private String patronId;
}
